/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.doctor.netHosptial.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.doctor.netHosptial.entity.NetPresc;
import com.jims.master.modules.doctor.netHosptial.entity.NetPrescMain;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 门诊医嘱明细DAO接口
 * @author zp
 * @version 2016-05-31
 */
@MyBatisDao
public interface NetPrescDao extends CrudDao<NetPresc> {

    /**
     * 获取病人每次门诊记录
     * @param patientId
     * @param visitDate
     * @return
     */
    public NetPresc getNetPresc(@Param("patientId") String patientId, @Param("visitDate") Date visitDate);

    public List<NetPresc> selectNetPresc(@Param("patientId") String patientId, @Param("visitNo") String visitNo, @Param("visitDate") String visitDate);

    /**
     * 删除所有子记录
     * @return
     */
    public void deleteAll(NetPrescMain netPrescMain);

    public List<NetPresc> getNetPrescByMain(NetPresc netPresc);

    /**
     * 获得患者未传送的信息
     * @param -patientId
     * @param -remarks
     * @return
     */
    public List<NetPresc> getInfoToSend(NetPresc outpPresc);
    //改变发送标志
    public Integer send(NetPresc outpPresc);

    /***
     * 由处方单号查询处方明细
     * @param outpPresc
     * @return
     */
    public List<NetPresc> getNetPrescByPrescNo(NetPresc outpPresc);

}